
<div class="group-top">
    <dl class="circle-info">
        <dt class="name">
        <h2><a href="{:url('circle/Group/index',array('c_id'=>$c_id))}" class="group-name"><?php echo $circle_info['circle_name'];?></a></h2>
        <?php switch ($identity){
      	case 0:
      	case 5:
      		echo '<div class="button"><a href="javascript:void(0);" nctype="apply" class="btn"><i class="apply"></i>申请加入</a></div>';
break;
case 1:
echo '<div class="button"><a href="'.url('circle/Manage/index',array('c_id'=>$circle_info['circle_id'])).'" class="btn"><i class="manage"></i>管理</a></div>';
if($circle_info['new_verifycount'] != 0)
echo '<div class="pending"><a href="'.url('circle/Manage/applying',array('c_id'=>$c_id)).'">新会员审核</a><sup>'.$circle_info['new_verifycount'].'</sup></div>';
if($circle_info['new_informcount'] != 0)
echo '<div class="pending"><a href="'.url('circle/Manageinform/inform',array('c_id'=>$c_id)).'">新举报</a><sup>'.$circle_info['new_informcount'].'</sup></div>';
if($circle_info['new_mapplycount'] != 0)
echo '<div class="pending"><a href="'.url('circle/Managemapply/index',array('c_id'=>$c_id)).'">管理申请</a><sup>'.$circle_info['new_mapplycount'].'</sup></div>';
break;
case 2:
echo '<div class="button"><a href="'.url('circle/Manage/index',array('c_id'=>$circle_info['circle_id'])).'" class="btn"><i class="manage"></i>管理</a><a href="javascript:void(0);" nctype="quitGroup" class="btn"><i class="quit"></i>'.退出.'</a></div>';
if($circle_info['new_verifycount'] != 0)
echo '<div class="pending"><a href="'.url('circle/Manage/applying',array('c_id'=>$c_id)).'">新会员审核</a><sup>'.$circle_info['new_verifycount'].'</sup></div>';
if($circle_info['new_informcount'] != 0)
echo '<div class="pending"><a href="'.url('circle/Manageinform/inform',array('c_id'=>$c_id)).'">新举报</a><sup>'.$circle_info['new_informcount'].'</sup></div>';

break;
case 4:
echo '<div class="button"><a href="javascript:void(0);" class="btn">申请中，等待审核。</a></div>';
break;
case 3:
case 6:
echo '<div class="button"><a href="javascript:void(0);" nctype="quitGroup" class="btn"><i class="quit"></i>退出</a></div>';
break;
}?>
</dt>
<dd class="pic"><a href="{:url('circle/Group/index',array('c_id'=>$c_id))}"><img src="<?php echo circleLogo($circle_info['circle_id']);?>"/></a></dd>
<dd class="intro"><?php if($circle_info['circle_desc'] != ''){ echo $circle_info['circle_desc'];}else{ echo '不相识的你我却拥有相同的爱好，圈子让我们距离更近：';}?></dd>
<dd class="manage">
      <span class="master">
         圈主：<a href="javascript:void(0)"><i></i><?php echo $creator['member_name'];?></a>
      </span>
      <span class="moderator">
        管理：
          <?php if(!empty($manager_list)){foreach(($manager_list) as $val){?>
          <a target="_blank" href="javascript:void(0)"><i></i><?php echo $val['member_name'];?></a>
          <?php }}else{echo '暂无管理员';}?>
          <?php if($circle_info['mapply_open'] == 1 && $identity == 3 && $cm_info['cm_level'] >= $circle_info['mapply_ml']){?>
        <a href="javascript:void(0);" nctype="manageApply">申请成为管理</a>
          <?php }?>
      </span>
</dd>
</dl>
<div class="circle-create"><a href="javascript:void(0);" nctype="create_circle"><i></i>创建我的新圈子</a></div>
<div class="clear"></div>
</div>
<div class="breadcrumd">
    <h4>当前位置：</h4>
    <?php if(!empty($breadcrumd)){?>
    <?php foreach (($breadcrumd) as $val){?>
    <?php if($val['link'] != ''){?>
    <a href="<?php echo $val['link'];?>"><?php echo $val['title'];?></a>
    <?php }else{echo $val['title'];}?>
    <?php }?>
    <?php }?>
</div>
<script type="text/javascript" src="__CIRCLE_RESOURCE__/js/group.js" charset="utf-8"></script>
<script>
    var c_id = <?php echo $c_id;?>;
    var identity = <?php echo $identity;?>;
</script>
